package com.keke.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName: HelloController
 * @Description:
 * @Author: zhangjin
 * @Date: 2021/9/17
 */
//在templates目录下的所有页面，只能通过controller来跳转
//这个需要模板引擎的支持 thymeleaf
@Controller
public class IndexController {

    @GetMapping("/index")
    public String index() {
        return "index";
    }

}
